﻿/*
    Churned Ajax Toolkit
    http://www.codeplex.com/ChurnedAjaxToolkit

    This source is subject to the Microsoft Permissive License.
    All other rights reserved.

    Version:  1.0.1 released 25 April 2008
*/

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        txtTest.TextMode = (TextBoxMode)Enum.Parse(typeof(TextBoxMode), ddl_textboxMode.SelectedValue);
        teTest.LabelCssClass = cb_labelCssClass.Checked ? "labelCssClass" : "";
        teTest.LabelHoverCssClass = cb_labelHoverCssClass.Checked ? "labelHoverCssClass" : "";
        teTest.TextboxCssClass = cb_textboxCssClass.Checked ? "textboxCssClass" : "";
        teTest.ClientEdited = cb_clientEdited.Checked ? "onEdited" : "";
        teTest.ActivationMode = (ChurnedAjaxToolkit.TextEditActivationMode)Int16.Parse(ddl_activationMode.SelectedValue);
        teTest.HoverActivationDelay = (ChurnedAjaxToolkit.TextEditHoverActivationDelay)Int16.Parse(ddl_hoverActivationDelay.SelectedValue);
        teTest.BlankText = txt_blankText.Text;
        teTest.TextboxTooltipText = txt_textboxTooltipText.Text;
        teTest.LabelTooltipText = txt_labelTooltipText.Text;
        teTest.ResizeTextboxWidth = cb_resizeTextboxWidth.Checked;
        teTest.MinTextboxWidth = Int16.Parse(txt_minTextboxWidth.Text);
        teTest.MaxTextboxWidth = Int16.Parse(txt_maxTextboxWidth.Text);
        teTest.ResizeTextboxHeight = cb_resizeTextboxHeight.Checked;
        teTest.MinTextboxHeight = Int16.Parse(txt_minTextboxHeight.Text);
        teTest.MaxTextboxHeight = Int16.Parse(txt_maxTextboxHeight.Text);
    }
}
